package com.woniuxy01;

import java.util.Arrays;
import java.util.Random;

/**
 * @author 作者
 * @create 2025-06-05 9:32
 */
public class Test02 {
    public static void main(String[] args) {
        System.out.println(Math.abs(-1));
        System.out.println(Math.sqrt(9));
        System.out.println(Math.min(9,2));
        System.out.println(Math.random());

        Random random = new Random();
        for (int i = 0; i < 10; i++) {
            System.out.println(random.nextInt(1,100));
        }

        int[] a = {1,2,3,4,5,6,7,8,9,10,11};
        System.out.println(Arrays.binarySearch(a,11));

    }
}
